notebook: use the current state to get the padding values
authorCosimo Cecchi <cosimoc@gnome.org>
Tue, 27 Sep 2011 16:54:22 +0000 (12:54 -0400)
committerCosimo Cecchi <cosimoc@gnome.org>
Tue, 27 Sep 2011 17:43:21 +0000 (13:43 -0400)
commitd4f83cdfb61a6d781d91557c54be398b9dcbe300
tree4f72945683f56adca3a0943cf8086659bb19040b
parent4991da8dd533b70ad44a4c7395ed08d563111658
notebook: use the current state to get the padding values

We want to enable the use of different padding values between active and
inactive tabs, so that the two are completely separated (but limited by
the active tab size).
This way themes can decide how bigger the active tab is drawn compared
to the normal one just specifying a different padding value from the
CSS, like this:

.notebook tab {
  padding: 2;
}

.notebook tab:active {
  padding: 4;
}

As a first step, fetch the padding values with the right state flags
from GtkStyleContext.

https://bugzilla.gnome.org/show_bug.cgi?id=659777
gtk/gtknotebook.c